gtk3-demo: avoid a resizing problem
authorMatthias Clasen <mclasen@redhat.com>
Sat, 11 Jan 2014 23:06:06 +0000 (18:06 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Jan 2014 23:06:06 +0000 (18:06 -0500)
Two changes that sneaked in during the GtkApplication port
made it so that the window would not let you shrink it again
after you've made it larger. This also yielded very surprising
results when unmaximizing the window: it would come back to
have a minimum width slightly larger than the screen, making
maximization fail from then on.

demos/gtk-demo/main.ui

index 63b07dae4564a092c91f6b378e8d744a78421d79..07d206979731b990a22c6e572bfb55fb7f3d644f 100644 (file)
@@ -31,8 +31,8 @@
     </columns>
   </object>
   <object class="GtkApplicationWindow" id="window">
-    <property name="width_request">800</property>
-    <property name="height_request">600</property>
+    <property name="default-width">800</property>
+    <property name="default-height">600</property>
     <property name="can_focus">False</property>
     <property name="title">GTK+ Demo</property>
     <signal name="delete-event" handler="gtk_false" swapped="no"/>
               <object class="GtkScrolledWindow" id="scrolledwindow1">
                 <property name="visible">True</property>
                 <property name="can_focus">True</property>
-                <property name="hscrollbar_policy">never</property>
                 <property name="shadow_type">none</property>
                 <child>
                   <object class="GtkTextView" id="info-textview">